import Main from '@/components/main'
import MainGame from '@/components/main/main-game.vue'
export default [
  {
    path: '/game-score-management',
    name: 'game-score',
    component: Main,
    meta: {
      access: ['INTEGRAL_MANAGER', 'GAME_SCORE'],
      title: '赛事成绩管理'
    },
    children: [
      // {
      //   path: 'career',
      //   name: 'score-career',
      //   meta: {
      //     title: '职业赛事成绩'
      //   },
      //   component: MainGame,
      //   children: [
      //     {
      //       path: 'man',
      //       name: 'score-career-man',
      //       meta: {
      //         title: '男子组成绩'
      //       },
      //       component: () => import('@/view/game-score/career-man.vue'),
      //     },
      //     {
      //       path: 'women',
      //       name: 'score-career-women',
      //       meta: {
      //         title: '女子组成绩'
      //       },
      //       component: () => import('@/view/game-score/career-women.vue'),
      //     },
      //     {
      //       path: 'man/match/:id',
      //       name: 'game-score-management-career-man',
      //       meta: {
      //         hideInLeftMenu: true,
      //         title: '男子组成绩'
      //       },
      //       component: () => import('@/view/game-score/match-arrange.vue')
      //     },
      //     {
      //       path: 'women/match/:id',
      //       name: 'game-score-management-career-women',
      //       meta: {
      //         hideInLeftMenu: true,
      //         title: '女子组成绩'
      //       },
      //       component: () => import('@/view/game-score/match-arrange.vue')
      //     }
      //   ]
      // },
      {
        path: 'career-man',
        name: 'score-career-man',
        meta: {
          title: '职业男子赛事成绩'
        },
        component: () => import('@/view/game-score/career-man.vue'),
      },
      {
        path: 'women',
        name: 'score-women',
        meta: {
          title: '职业女子赛事成绩'
        },
        component: MainGame,
        children: [
          {
            path: 'career-women',
            name: 'score-career-women',
            meta: {
              title: '职业女子赛事成绩'
            },
            component: () => import('@/view/game-score/career-women.vue')
          },
          {
            path: 'women-two',
            name: 'score-career-women-two',
            meta: {
              title: '职业女子二级赛事成绩'
            },
            component: () => import('@/view/game-score/career-women-two.vue')
          }
        ]
      },
      {
        path: 'career-man/match/:id',
        name: 'game-score-management-career-man',
        meta: {
          hideInLeftMenu: true,
          title: '职业男子赛事成绩'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'career-women/match/:id',
        name: 'game-score-management-career-women',
        meta: {
          hideInLeftMenu: true,
          title: '职业女子赛事成绩'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'women-two/match/:id',
        name: 'game-score-management-women-two',
        meta: {
          hideInLeftMenu: true,
          title: '职业女子二级赛事成绩'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'amateur',
        name: 'score-amateur',
        meta: {
          title: '业余赛事成绩'
        },
        component: () => import('@/view/game-score/score-amateur.vue'),
      },
      {
        path: 'teen',
        name: 'score-teen',
        meta: {
          title: '青少年赛事成绩'
        },
        component: () => import('@/view/game-score/score-teen.vue'),
      },
      {
        path: 'amateur/match/:id',
        name: 'game-score-management-score-amateur',
        meta: {
          hideInLeftMenu: true,
          title: '业余赛事成绩'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'teen/match/:id',
        name: 'game-score-management-score-teen',
        meta: {
          hideInLeftMenu: true,
          title: '青少年赛事成绩'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'history',
        name: 'score-history',
        meta: {
          title: '历史赛事成绩'
        },
        component: MainGame,
        children: [
          {
            path: 'amateur',
            name: 'score-amateur',
            meta: {
              title: '业余赛事成绩'
            },
            component: MainGame,
            children: [
              {
                path: 'man',
                name: 'score-amateur-man',
                meta: {
                  title: '男子组成绩'
                },
                component: () => import('@/view/game-score/amateur-man.vue'),
              },
              {
                path: 'women',
                name: 'score-amateur-women',
                meta: {
                  title: '女子组成绩'
                },
                component: () => import('@/view/game-score/amateur-women.vue'),
              },
              {
                path: 'man/match/:id',
                name: 'game-score-management-amateur-man',
                meta: {
                  hideInLeftMenu: true,
                  title: '男子组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              },
              {
                path: 'women/match/:id',
                name: 'game-score-management-amateur-women',
                meta: {
                  hideInLeftMenu: true,
                  title: '女子组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              }
            ]
          },
          {
            path: 'teen',
            name: 'score-teen',
            meta: {
              title: '青少年赛事成绩'
            },
            component: MainGame,
            children: [
              {
                path: 'man-a',
                name: 'score-teen-man-a',
                meta: {
                  title: '男子A组成绩'
                },
                component: () => import('@/view/game-score/teen-man-a.vue'),
              },
              {
                path: 'women-a',
                name: 'score-teen-women-a',
                meta: {
                  title: '女子A组成绩'
                },
                component: () => import('@/view/game-score/teen-women-a.vue'),
              },
              {
                path: 'man-b',
                name: 'score-teen-man-b',
                meta: {
                  title: '男子B组成绩'
                },
                component: () => import('@/view/game-score/teen-man-b.vue'),
              },
              {
                path: 'women-b',
                name: 'score-teen-women-b',
                meta: {
                  title: '女子B组成绩'
                },
                component: () => import('@/view/game-score/teen-women-b.vue'),
              },
              {
                path: 'man-a/match/:id',
                name: 'game-score-management-teen-man-a',
                meta: {
                  hideInLeftMenu: true,
                  title: '男子A组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              },
              {
                path: 'women-a/match/:id',
                name: 'game-score-management-teen-women-a',
                meta: {
                  hideInLeftMenu: true,
                  title: '女子A组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              },
              {
                path: 'man-b/match/:id',
                name: 'game-score-management-teen-man-b',
                meta: {
                  hideInLeftMenu: true,
                  title: '男子B组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              },
              {
                path: 'women-b/match/:id',
                name: 'game-score-management-teen-women-b',
                meta: {
                  hideInLeftMenu: true,
                  title: '女子B组成绩'
                },
                component: () => import('@/view/game-score/match-arrange.vue')
              }
            ]
          },
        ]
      },
      {
        path: 'match-field/:id?',
        name: 'game-match-field',
        meta: {
          hideInMenu: true,
          title: '单场赛事成绩'
        },
        component: () => import('@/view/game-score/match-field.vue')
      },
      {
        path: 'match/:id',
        name: 'game-score-management',
        meta: {
          hideInMenu: true,
          title: '比赛安排'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },
      {
        path: 'match/',
        name: 'game-score-management2',
        meta: {
          hideInMenu: true,
          title: '未上传成绩赛事'
        },
        component: () => import('@/view/game-score/match-arrange.vue')
      },

    ]
  },
]
